﻿<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <title>用户中心 - @ViewBag.Title </title>

    <!-- Bootstrap Core CSS -->
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
    <!-- MetisMenu CSS -->
    <link href="~/Content/metisMenu.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="~/Content/sb-admin-2.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="~/Content/font-awesome.min.css" rel="stylesheet" type="text/css">

    <script src="~/Scripts/jquery.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script src="~/Scripts/metisMenu.min.js"></script>
    <script src="~/Scripts/sb-admin-2.js"></script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>
<body>
    <div id="wrapper">
        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="~/">云味网</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                <li><span>您好，</span><span>@User.Identity.Name</span></li>
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-qrcode fa-fw"></i>  <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-messages">
                        <li>
                            <a href="#" style="text-align: center;">
                                <img src="~/Res/android.png" style="width:200px;height:200px;" />
                                <div>扫描二维码下载Android版</div>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-messages -->
                </li>
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li>
                            <a href="~/Admin/User/Details"><i class="fa fa-user fa-fw"></i> 个人资料</a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-gear fa-fw"></i> 系统设置</a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="/Admin/User/Logout"><i class="fa fa-sign-out fa-fw"></i> 注销</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="查找...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                        <li>
                            <a href="/Admin/Home/Index"><i class="fa fa-dashboard fa-fw"></i> 控制面板</a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-home fa-fw"></i> 我的云味<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="/Admin/User/Details">个人信息</a>
                                </li>
                                <li>
                                    <a href="/Admin/User/ChangePassword">修改密码</a>
                                </li>
                                @if (User.IsInRole("Restaurant"))
                                {
                                    <li>
                                        <!--餐厅老板权限-->
                                        <a href="/Admin/Restaurant/List">我的餐馆</a>
                                    </li>
                                }
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-shopping-cart fa-fw"></i> 订单管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="#">即时订单</a>
                                </li>
                                <li>
                                    <a href="#">历史订单</a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-heart fa-fw"></i> 我的收藏<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="/RRShop/Favorite/Restaurant">餐馆</a>
                                </li>
                                <li>
                                    <a href="/RRShop/Favorite/Chef">厨师</a>
                                </li>
                                <li>
                                    <a href="/RRShop/Favorite/Food">菜品</a>
                                </li>
                                <li>
                                    <a href="/RRShop/Favorite/Article">文章</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-comments-o fa-fw"></i> 我的评论<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="/Member/Comment/Restaurant">餐馆</a>
                                </li>
                                <li>
                                    <a href="/Member/Comment/Chef">厨师</a>
                                </li>
                                <li>
                                    <a href="/Member/Comment/Food">菜品</a>
                                </li>
                                <li>
                                    <a href="/Member/Comment/Article">文章</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-briefcase fa-fw"></i> 基础服务<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="#">设置</a>
                                </li>
                                <li>
                                    <a href="#">餐馆 <span class="fa arrow"></span></a>
                                    <ul class="nav nav-third-level">
                                        <li>
                                            <a href="#">会员管理</a>
                                        </li>
                                        <li>
                                            <a href="#">职员管理</a>
                                        </li>
                                        <li>
                                            <a href="#">目录管理</a>
                                        </li>
                                        <li>
                                            <a href="#">菜品管理</a>
                                        </li>
                                        <li>
                                            <a href="#">餐位管理</a>
                                        </li>
                                        <li>
                                            <a href="#">餐馆消息</a>
                                        </li>
                                        <li>
                                            <a href="#">招聘信息</a>
                                        </li>
                                        <li>
                                            <a href="#">求职信息</a>
                                        </li>
                                    </ul>
                                    <!-- /.nav-third-level -->
                                </li>
                                <li>
                                    <a href="#">厨师 <span class="fa arrow"></span></a>
                                    <ul class="nav nav-third-level">
                                        <li>
                                            <a href="#">菜品管理</a>
                                        </li>
                                        <li>
                                            <a href="#">文章管理</a>
                                        </li>
                                        <li>
                                            <a href="#">粉丝管理</a>
                                        </li>
                                        <li>
                                            <a href="#">求职信息</a>
                                        </li>
                                    </ul>
                                    <!-- /.nav-third-level -->
                                </li>
                                <li>
                                    <a href="#">服务员 <span class="fa arrow"></span></a>
                                    <ul class="nav nav-third-level">
                                        <li>
                                            <a href="#">餐位管理</a>
                                        </li>
                                        <li>
                                            <a href="#">求职信息</a>
                                        </li>
                                    </ul>
                                    <!-- /.nav-third-level -->
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 财务报表<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="#">我的账单</a>
                                </li>
                                <li>
                                    <a href="#">成本管理 <span class="fa arrow"></span></a>
                                    <ul class="nav nav-third-level">
                                        <li>
                                            <a href="#">人力成本</a>
                                        </li>
                                        <li>
                                            <a href="#">材料成本</a>
                                        </li>
                                    </ul>
                                    <!-- /.nav-second-level -->
                                </li>
                            </ul>
                        </li>

                        @if (User.IsInRole("Vendor"))
                        {
                            <li>
                                <a href="#"><i class="fa fa-truck fa-fw"></i> 供货管理<span class="fa arrow"></span></a>
                                <ul class="nav nav-second-level">
                                    <li>
                                        <a href="/Admin/Vendor/Index">我的消息</a>
                                    </li>
                                    <li>
                                        <a href="/Admin/Vendor/Setting">基本设置</a>
                                    </li>
                                    <li>
                                        <a href="/Admin/Vendor/Ingredient">食材管理</a>
                                    </li>
                                    <li>
                                        <a href="/Admin/Vendor/Customers">客户管理</a>
                                    </li>
                                </ul>
                            </li>
                        }
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>

        <div id="page-wrapper">
            @RenderBody()
        </div>
        <!-- /#page-wrapper -->
    </div>
    <!-- /#wrapper -->
</body>
</html>
